<?
include_once("variables.php");
if($_SESSION['customer_id']!='') {
	$session_page = "customersession.php";
} else {
	$session_page = "session.php";
}
include_once($absolute_path.$session_page);
include_once("appointment.php");
$service_id = $_REQUEST['service_id'];
$data = getService($service_id);
$status = 0;
$msg = "Some Error has occured";
if($data->cost=='') {
	$status = 0;
	$msg = "No service found.";
} else {
	$status = 1;
	$msg='';
}

?>
<data>
	<status><?=$status?></status>
	<msg><?=$msg?></msg>
	<values><? 
	if($status == 1) {
	$fields = array("duration","cost");
	foreach($fields as $name) {
		echo "<$name>".$data->$name."</$name>\n";
	}
  }
 ?></values>
</data>
